Fix ordering in get_value