Fix: Undefined variable in BaseObject