Fix bug after Windows compilation