Fix no data returned

Fix no data returned when it needs to make the cache file.
Issue #18