fix environment variable issue