fixed VS2010 crash bug