fixed profile update bugs