bug fix shell grammar