Fixed SMP issues with syncing