fix for connect event