Fix cache initialization