Error patching

Fixing a couple "undefined" references