fix typo in scope.events for loop