fix environment