Which revision fixes the dangling modifier in this sentence? While pitching a tent with the scouts, a doe ate the tall grass in the meadow.

In the meadow while pitching a tent with the scouts, a doe ate the tall grass.

In the meadow, a doe ate the tall grass while pitching a tent with the scouts.

While pitching a tent in the meadow with the scouts, a doe ate the tall grass.

While I was pitching a tent with the scouts, a doe ate the tall grass in the meadow.