Fixed windows related code reversal