fixed the header's bug