Fix repl issue when reading incomplete code