fix #280: Crash on unbalanced delimiters