Which revision corrects the dangling modifier in this sentence?
Brushing my teeth, a spider crawled on the sink.
A. While i was brushing my teeth, a spider crawled on the sink.
B. While brushing my teeth, a spider crawled on the sink.
C. A spider, brushing my teeth, crawled on the sink.
D. A spider crawled on the sink while brushing my teeth.