fixing save profile issue