Shell compiles and fixed a few missing statements that would case a segfault with theior absence