Fixed bug in cmd.eh