fix user_index assignment in insertVertex()