Which sentence contains a dangling modifier?
a. Upon taking the field, the player was hit by a foul ball.
b. When operating heavy machinery, one must use caution.
c. Upon bestowing the awards, the mayor congratulated all the participants.
d. Upon hearing the fire engines, the apartment building was evacuated.