fix 1.6.8 repl bug