bug fix on Cache