getName() method fixed.