zindex fixes for mac