fix votes bug