Fix InsertTabWrapper() function.