Fix profile modification bug