Read the following complex sentence:
Although the students prepared extensively for the exam, which they had been studying for weeks, they felt unprepared.
Which option corrects the error in this sentence relating to grammatical structure?