fixed extract envelope error message