Fixed bug with msvc