Bugfix on editing profile