Fixed MSVC bug