Fix some errors when there is no network.
Sync with selection works properly again.