Bug fix on addLine()