made it not segfault when there are no targets