Fixed bug when NAMES__ is not defined.