First make sure you have all three wives attached to the proper husband.
First go to the child and detach him from the mother he is currently attached to. Once he is detached go to the correct mother and attach the child to her.
To make the attachment / detachments: In the People, Family highlight the person where you want to make the change. In the toolbar menu at the top select person, scroll down and click attach/detach person