Choose the sentence that has a misplaced modifier.

ASwimming away, the dog sadly watched the ducks.
BBarking loudly, the dog scared the ducks.
CThe dog ran after the ducks, which were flapping their wings.
DTail wagging, the dog followed the ducks.