fixed the compiled error in VS2010