optimize set many collections
fix dropping many-to-many relations