Bug fixed when updating users