fix debugger instance check