Fixing maximum line length calculation