Change code to avoid compiler crash before vc2012, gcc doesn't have this problem.