Correcting hg lines