fixed PHP notice: Undefined property: stdClass::