dataplug: fix header handling