Fix for MSVC compiler