Fixes loading polymorphic children. WARNING: still doesn't manage references