fixed an error in set_value when cursor.count == 1.