Fix scheduler errors.