fixed bug with profile updates