Fixed ModelCache.loadState.