normalize error