which sentence has the correct pronoun and antecedent agreement

A. when the construction workers arrived at the site he saw people digging holes

B. when the construction workers arrived at the site they saw people digging holes