Fixed bug with read cache