Fixed reduceVertex