solving votes bug