Event notification variable error