fix coredata tables