Problem to create family tree

Hi community,!

A few days ago i was implementing a diagram tree on laravel. But today i saw an error, the problem is that a person with wife cannot have parents.

It’s a bug of software or has a solution??

Thanks in Advance.


This is the template: