Fixed minor bug on printing names.