fixed for edge case if there are no more statements to vote on