Refactor about syntax-error