Fixed a bug preventing the reopening of closed tabs.