bug fix setLine method