fixed MSVC warnings