fix a bug in MovingEntitiesOperator that would sometimes leave dangling entities
Merge pull request #3934 from ZappoMan/bugfixes

fix a bug in MovingEntitiesOperator that would sometimes leave dangling entities