fix a segfault when opening an osc:// device