-Backported fix for data reduction bug.