CRAFTERCMS-408: Fixing a issue in the createProfile method