fixing msvc bug