Prevent double firing of events