Choose the sentence that has a misplaced modifier.

A. Swimming away, the dog sadly watched the ducks.
B. Barking loudly, the dog scared the ducks.
C. The dog ran after the ducks, which were flapping their wings.
D. Tail wagging, the dog followed the ducks.