bug with closed tab fixed