Fixed potential SEGFAULT.