Fix "flicker" when previewing lessons