fixed NPE when running with > 1 reducer