fix yet another bug in resource.value_equations()