Minor changes for profile save and load

Minor changes for profile save and load