fixed runtime handling on Windows