fixes profile saving