fix client event bug