Fixed the case of NameOf()

Fixed the case of NameOf()