fixed type self.retry.count  should be self._retry_count