fixing bug where Language model was deleted