[windows8] fixes connect function