fix bug to guarantee normal operation of release in vs2012