fixed windows bugs