Fixed multiple editing of user profile

Fixes #153
Fixes #171