Fix cache save issue.