Which of the following contains a vague pronoun reference?
A. When Patrick's computer wasn't working properly, he replaced the battery.
B. Patrick replaced the battery in his computer when he noticed that it wasn't working properly.
Determine the correct option from the provided choices and reply with its corresponding letter.

B