changes the env variables back to how they should be