Fix z-order of mode buttons.