Fix query in profile.