Fix getting an object from the cache based on a string id