Fixing handling of sc->txhdridx