fix display of error message by expanding the folded form