Fix IllegalArgumentException in spawn chooser.