Fix dialog builder.