Fixed a bug in the disk cache (the last few elements were out of order)