Fix bugs in Main, the soot.G.reset should at the very first.