The real problem is that the original collection is managed by the object manager, thus should not be replaced by a new instance.