Fix event manager using incorrect type for name index.