Fix cache flushing problem.