Small fix in cache class.