Fix a few issues with cache miss handling.