fixed bug in shell