Fixed two client connect bugs.