fix envelope