Fixed bug in headers export