Fix preferences dialog.