Fix for reduce