fixes when ensuring tables in parallel