Fixed Syncing Error

Fixed error in finding and syncing local repository.