fix caching queue bug