Fixed a bug in delete users