Fixed segfault when trying to use "Connect" with no buffer selected