Fix query.