standard vote query fix