fixed reduce_equal