Fix truncate length