fix bug with manage events