Fix add shared event bug.