Fixed cache if use `getSourceLevels`

Resolved #985