Fixed various object not defined errors.
Dump.