fix error visibility