Fixed profiles not properly updating when changed in GUI.