Missed type_d in fixing trailing whitespaces