Fix bug in TableEventStore