The written alif after wāw is also a subject.

The Past Verb: Definition, Building, Conjugation and Parsing