Fixed typo in reduce