fix tiny typo in reduceInitial function