mary thought about the end of singin ' in the rain , when debbie reynolds 's character , kathy , had stood hidden behind a curtain as she sang ... and how wrong it had been for her to hide herself away like that .