fix segfault when unsupported protocol provided