fix modules multiple load problem in the repl