fixed bugs caused by moving profiles to new folder