fix Envelope.bake. envelope bake test