fixed errors in shell