fixes link to same object bug
Merge pull request #2 from Arni/materialtypes_link_to_same_object_bug

fixes link to same object bug