Fix leak of cache item

Cause by changes in 7b4ef2b677c78cf27fcb985a00ac4f532f785140