fixes shell bug