fix line ids