fixed repl bug