Fix #786

Generator method works with callable instance.