Revert "Fix order of truncation and requesting index of tab"

This reverts commit 66944f649e111f991732b09177269a250336cbca.