Removing residual errors