Fix crasher - need to define $obj