Change when env variables are copied