fix minor query mistake