fix render bug in windows