remove orphaned assignments