Fix uninitialised variable access.