fixed repl -i, made errors print out even if stack is undefined