suggested fix to net_flux problem raised in issue #56