Fixed a bug that prevented the reopening of closed tabs.