Fix crash.
Delay references until everything has been parsed