fixed problem with REPL killing console