repairing the segmentation fault cause by lack of error checking in the instruction list construction