Fix truncate patch