Fixed bug in opt_reduce (see vloghammer issue_044)