Undefined variable fix.