fixing weight graph