fix broken advanced searches when FilterQuery is used (wrap query in paranthesis)