Fix bug in the snippet redactor
Fix bugs