ROOT-5599: Fix the residual issue

The read rule was coded wrongly: the same name was erroneously used
for the source and target class :(