fix truncate