I did the same thing. I lived in RI at the time and the state allows you to register to vote on the day of the primary and immediately disaffiliate after voting.