serious event handling error fixed