bug fix on cache