Fix query error
Fix curation session for profile must be nested