fix exception bug in hdfs module