fix a bug where user can not be edited