removing invalid votes error, variable was being reset for debugging purposes