fix a bug in collecting cache error
fix a bug in collecting cache error