fixed problem that users couldn't save profile