Make sure dialogs are centered