fix truncate call