Fixing handling of sc->hxhdridx