Fixed OnConnected callback call