Corrected accidental loop caused when loading a profile