fixing bad parameter call and incorrect platform check before including windows module