system
Personality:
Assistant
human
Replace the incorrect use of "their" with the appropriate pronoun in the following sentence.

Relevant data:
"The students were excited to see their favorite teacher, but when they arrived to her classroom, they found out their substitute had arrived instead."
gpt
The students were excited to see their favorite teacher, but when they arrived to her classroom, they found out he had arrived instead.