fixes a linked repository bug