fix close last empty tab