Fixing sync bug.