unknown segfault bug fixed