fixed NULL pointer crash (used wrong variable) on m_names.c