Fix placement of modal dialogs