Fixing reference to parent