Fix profile creation and loading