Rectifying errors