fixed line splitting bug