Fix Edit sample