syntax fail for onEvent fix