Fixed types on reduce