Fixes for sync_network script