fix ProfileManager