Segfault bug fixed.