fix for nested cache