fixed query being replaced with dropdown selection