fix line offsets