Why sometimes a player loads into the game scene and sometimes it doesn't?



I am using PUN2 and I have PhotonNetwork.AutomaticallySyncScene = true;

In my lobby scene when players join my room and when the masterclient starts the game "which loads the main game scene" sometimes some players load the game scene and sometimes they don't, and sometimes it takes too much time for a player to join the scene and that breaks my game logic. its not just the other player(s) sometimes masterclient itself doesn't load the game scene while other players have already joined the game scene.

my question is that is this because of latency? or is it a bug? and is there a work around for it?