fix creating namevec