ensure termination on invalid syntax