Fix spark reductions