Fixed display of error messages