fix mulitple input could not set the reduce correctly