Fix profile saving