fixed bug where isOnline() would return null instead of true