fix incompatiblity with hadoop 1.