Fixed MSVC errors