fix indices on event table