Fix bug where .cache does not exist