corrected segfault when void argument