fix truncate class