Fix line length calcucation