Overlays z-index bug fix