dangling modifier
A modifying phrase that does not attach to the subject.
A modifying phrase at the head of a sentence must attach to the subject that follows. Walking to the hall, she lost the key. Not Walking to the hall, the key was lost. The second sentence makes the key walk.
Examples
UseAfter reading the brief, he closed the file.
AvoidAfter reading the brief, the file was closed.