Fix regarding a empty cache.
Merge pull request #14 from orviz/fix_empty_cache

Fix regarding a empty cache.