fix debugger code