Fix: Undefined variable 'this' should be 'self'