fix corner case in reduce_vars
#5875
Merged
This job succeeded
Loading
reduce_vars
#5875