fixed for hadoop2.4.0