Fixed time-to-time segfaults when deletting a group of elements from scene.
TODO: The reason is still unknown