Fixing profile update functionality