fixed getting snippets from formatted keywords