[minor] Better debugging
Handling a case when the parent type is not yet calculated