fix bugs of command shell