Fix SEGFAULT bugs in the reading of argv