Sentence: Frank was upset with Tom because the toaster he had sold him didn't work.
 Reason: The 'he' refers to tom because The pronoun probably refers to Tom because he sold a toaster that was not working. And that made Frank upset. 
 Question: Is the above reasoning correct or wrong? 