fix GenericReader and HDF5Reader
Merge pull request #657 from mtola/master

fix GenericReader and HDF5Reader