Fixed for vs2010