Fix bug in disk cache update