Collisions, depth-sorting and bugs