fix making type definition case insensitive