fixed bug in header setter