fix segfault when not passing any arguments