Fixed some bugs, console parameters passing fix