fix bugs in shell