Fixed loading logic for voting