fix z-index glitch