fixed graph loading from txt