fixed error in the reduced graph