Fix 'Notice: Undefined property: stdClass::$Header' error