Fixed splitting targets into a list