Fix output contexts cache