fix environment dependency