Sentence: Joe paid the detective after he delivered the final report on the case.
 Reason: The 'he' refers to the detective because it was his job to investigate the murder. 
 Question: Is the above reasoning correct or wrong? 