Fixed deleting last tab