Fixed some seg faults in the parser. I need to look for more of these issues.