Windows compatibility fix