Offline sync bug fixes.