fix truncate mode