Fix cache behavior and typo.