Why does a foreach loop from class into a get all actors from class not work?

Try using blueprint interface after second loop