code for the manage relational behavior will be generated based on the repeat region used at the time it is applied.
you will likely need to revert the page to the point before you added the manage relational table behavior, then correct the recordset used by the repeat region, then reaply the manage relational table behavior.