There can be only one!

Fix runtime error when there are no targets