.header() fix

it should overwrite a header if exists, add new one otherwise.