bug fix for hadoop 2