Fix: Undefined local variable or method data