Fixing bugs with many-to-many updates and deletions.