Bug fix on editing profile