Fixed the truncate line bug