fixed #317
Merge pull request #349 from EUDAT-B2SHARE/bug317

fixed #317