stock name2id id2name, graph class bug fix