Revert environment variable clearing