fixed issue where _isOnline wasn't correct initial value