fixing tabs indexing issues