fixed bug in creating language model for a node