Prevent segfault (WTF?).