Repair dialog display on error.