fix query in search