fix: bug of order of return values.
fix: disallow termination symbol.