Fix PHP Fatal error, about access protect $attrib