Set the scope of the event correctly