Both are correct. The second can be seen as the preamble to something else. Perhaps:
- Carol dreamed that her daughter had been hit by a car. She was in the hospital in critical condition. Carol remembered being afraid that her daughter was going to die.
Does that help?
Help ESL Learners Learn Irregular Verbs