Fixed error during vote validation