fix a bug in MovingEntitiesOperator that would sometimes leave dangling entities