Bugfix: read header before data is loaded and update DataDefinition
accordingly