fix repl npe