fixed the compile error in VS2012