fix compiler error due to msvc