fix bug in Reducer
merge