bug fix at ParseShell