Corrections on addName method