fix isOnline