make update_value more robust