Fix truncate lines check