Fixed problem with profile losing data