fix: segv in syntax-error