fixed an issue where the header is read as data