io.cache: fix bug