fix environment conditions