fix the shell bug