remove error diagnostics