Fixed wrong syncing code

Stuff and reasons