fixed msvc compiler warning