windows compatibility fix