Fixed potential crash with the debugger tabs reset