How does the sentence end?

When traveling on an airplane, Emily needed to hold on to Mary's hand because
Emily was afraid of flying.