Fixed zIndex issues with ui overlays.