fix Undefined property