Fixing issue in trash manager