Ballot mishaps at primaries highlight third party struggle