fixed msvc warnings