fix segfault when init fail silently