fix missing header in the outer envelope