fix register relationship procedure