fixed bug that prevented user profile updating