the sentence has a dangling modifier did i fix it? “Swimming at the lake, a rock cut Sue’s foot.” The sentence has a dangling modifier. “Swimming at the lake, Sue cut her foot on a rock.”

Yes, corrected.