Improve the remove all lines issue.