fix wrong test in ItemRenderer