Fix Windows compatibility issue