Found two other bugs
1. The trainers randomized pokemon still uses the same moves as the original pokemon, for example a dialga using scratch when facing Amanda in the lab (her littens moves).
I had randomized both the trainers and wild pokemon.
2. It seems like the wild pokemon doesnt randomize if you only have that option locked in the challenge list, the wild pokemon only randomize if trainers pokemon are randomized aswell.