fix some bug in debug_pane