Correcting z-index for error dialogues