Fixed bug in getName