fixed error while starting REPL