Fixes bug with child/parent relationship