fixed catch event when connected to event based gateway