Fix issues with repl.