Fix sample closure code