Line correction