getName() not returning correct name