fix crash on win 8.1

win 8.1 + vs2013 -vs2012