fixed event passing wrong gateway origin bug;