Ensure the number of targets is correct