Repl bug fix