Fixed bug where syntax errors result in stack dump instead of correct output.