fixed reduce/reduce problem