fixed bug where both windows would freeze because of network communication