fix shell class bug