Fix segfault when no argument is passed