Fixed freeze. Found segfault.