Fix the infinite-loop problem which is in the vote action if-else