Segmentation fault at the end of the code deleted. It needs more debug, because sometimes a Segmentation Fault in another part raises.