Sync (barrier) bug fixed