Fixed centering of dialogs