fix crash shell