fixes null vote count issue