fix bug for manage events