[OpenTv] fix segmentation fault.