Fix bug where objects with the same ids were not gettign updated