fix IndexError in TableMapEvent