Segmentation fault fixed, remove the needs of valgrind.