fixed header insertion errors