Fixed misnamed variable in ratio loop (flux to flux_update)