Fixed bug in simulator: edges broken during simulation were not removed?