fix shell switching.