normalize errors