Fix cache counter error