Fix env provider restoring
Merge pull request #42 from vasichkin/improvements

fix provider restoring