Fixes z-index misordering