fix z-ordering of wireframes