fix broken query field