avoid potential segfault