bug fix in MDF for pathways with some negative fluxes