Fix searching/linking for objects with the same name.