Fix truncate to work