The following sentence contains errors in verb-tense consistency. Rewrite the sentence using the correct verb form.

By the time the movie was over, we left the theater.