Fixing query.