fixed reduce

fixed reduce problem