Fix bug for snippet ext