#286 Fix for sync after restore