fixed segfault when calling args