fix adding snippet