Trying to fix random segfault upon connect...