Change action declare and fix event error