Minor fix for client not being detected as connected