fix empty snippet