fixed runtime errors for windows demo