Fix wrong query option