fix z-indices