Fix problem with undefined snippet in editor