fixed line printing bug close #16