Fix cache initialization.