Fixed the creation of trigram