fixed a potential bug
add vs2010 solution