Fixes broken put/find for duplicate references