fix a bug in UpdateDictReducer