fix capitalization of leaf output in csv