fixed graph loading bug
fixed warnings