fix segfault if length of argv=1