fix shell behavior