Fixed repl implementation of sandbox.