Fixed bug that was giving wrong fluxes.