fix nested environment variable bug