Player state cast not working

Hi ,
Yes my game mode is setted up properly and i am using that gamemode in the map so that can’t be the problem.
I recently found out a way to make it work.
Adding a Delay before the for each loop fixes everything and the cast works (the names are printed). The funny thing is that the delay can also be of 0 seconds which makes me think that this is just a blueprint bug.
Here is a picture of the code as it is now