fixed a bug when joining subresourcen via multiple paths