fix query.