fixed bug in update events