fix truncateArg method