fix allocated cache