Fixed bug when adding users