Fixed bug in delete user where groups weren't updating properly.