fix set_value_and_dependencies