fixed profile querying