bug fix preserve lines