it does not segfault with -1