Fixed unhandled exception in Windows tool project.