Fixed command parent classes and some bugs in interactive mode.
Fixed command parent classes and some bugs in interactive mode.