Fixing a bug with deleted user