Bug fixes for snippet text