fixed header lines bug