fix env constant bug, fix proxy source incorrect bug