fixed a problem possible overwrite memory in cmd. base on knowlges from bug 2017...