Bugfix for first file missing case. The error happened when retrieving metadata. See merge request !85