Bugfix for reading from cache file