Fixed bug where header was added to dictionary