It was a vanilla error that got left behind in this mod. That line should have a 1 instead of a 3.
Aric created a function to return the family relation between two people, but he inserts the people into the function backwards. It shows up in a few places in his mod.