fix envelope bug