fix debug tool bar related issue