Fix scheduler refresh