Sentence: Patting her back, the woman smiled at the girl.
 Reason: The 'her' refers to the girl because if the woman smiled at the girl, that is extra evidence for another  friendly gesture such as patting her back. 
 Question: Is the above reasoning correct or wrong? 