fix segfault on incorrect arguments