Change logic for invoke self.func function.