fixed bug affecting profile page editing