fixing problem on windows where functions returning void are invoked incorrectly.