Fixed the bug with circular dependency of profiles and the 'improperly configured' error