fix saving env file