fixed logic bug in windows parsing