Fixed shared children not linking

Shared children wouldn't link for me. This seems to fix it.