fixed bug with cloning the same tab