Fixing the parent relationship for submodules