fixed bug with invalid _cache type