fixed msvc crash