fix code snippet sample