fix error when all tabs were closed