Fix bug syncing events