Avoid possible segfault