Compatibility fix for Windows
strange compatibility issues in Windows