Fixed bug which caused the ECS to stop executing after adding a machine