resolve multi-tab bug