Solve a bug when split a line