Cache: bug with double erase fixed