Restore previous submodules.