bugfix for cache error with trash thread