Fix crash when another plugin emit an activity