fix(truncate): fix issue #6