Fixed bug when deleting user accounts