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

It custom event from blueprint interface.