fixed header reading error