What is turning the corner? "The post office" is the noun closest to "turning the corner" so does it modify that? If you think about it, you may decide it is the speaker who was turning. But then the sentence should read "While I was turning the corner..."
Modifier not next to what it's modifying, vague=dangling modifier