Fix z-index glitch