Finally found a way to don't lose the count, but at the beginning is counting two times the only tab.