Fixed an error when closing tab