Game Crashes

I was playing the game with the latest patch today and i start the first gym battlw with Orion. It gives me an error message that it cannot run the script and it may be because i need to convert to static mode. Then the game crashes and says script hanging. Any ideas

Did you happen to have no internet when you challenged him?