Bugfix when updating profile