fixed compatibility with Visual Studio