Fixed make graph minor bug