Fixed broken snippet coding