fix 'envelope'