Sentence: Ann asked Mary what time the library closes, but she had forgotten.
 Reason: The 'she' refers to mary because she was a woman, as well as to the name of the library, which means 'the house. 
 Question: Is the above reasoning correct or wrong? 