Fix tracebacks from out of scope