When ProfilesManager::m_currentProfile is changed the special://profile path must be updated as well.
Since m_currentProfile changes in ProfilesManager::Load() I added the updating of the special://profile path which made it obsolete in CApplication::Create().
Remove setting of special://profile path from OnSettingsLoading(); special://profile path is already set to the correct path when the settings are being loaded.