fixed intrinsic bug introduced by Visual Studio 2012