fix table names in entities