Sentence: Jim yelled at Kevin because he was so upset.
 Reason: The 'he' refers to jim because Jim was doing the yelling for the reason he was upset. 
 Question: Is the above reasoning correct or wrong? 