fix bug Access  Undefined property.