Sentence: This morning, Joey built a sand castle on the beach, and put a toy  flag in the highest tower, but this afternoon the tide  knocked it down.
 Reason: The 'it' refers to the sand castle because This morning, Joey built a sand castle on the beach, and put a toy flag in the highest tower, but this afternoon the wind knocked it down. 
 Question: Is the above reasoning correct or wrong? 