fixed reduce issue