fixed bug: cache was returning invalid json