Fixing the query.