`enabled` is a local variable here. Change to `self.enabled`.