Add project name and fix bug in displaying type.