fixed problem with empty envelopes
demo console update