To avoid confusion of IDs of different entities use unique random IDs wherever possible. This will quickly show wrong IDs being compared. Fix ID confusion error