Fix IO with cache