fixed call to wrong open function in esmreader