fix btype error when using windows schedule