Fixed cleanup process

Fixed  a bug in cleanup process after a user is deleted