bug fixed for vs 2012 fix