fixed msvc compile problem