Fixed clean segfault.