Fixing pre-sending headers