Fix profile update functionality