Fixed a bug when adding new users