fix mergeLinesFrom