Fixed debugger scope bug