Bugfix for random values in reductions