Flush the parameters after calling world.reset() in gazebo

HI all,
I am training a Reinforcement Learning agent for flying autonomous drones.
i let one drone follow other for 1000 steps and after that episode finishes, reset the drone’s position to starting position.
when i am using world.reset() to reset the simulation, the drones are respawned at the initial position but because of ardupilot paramters, the drones immediately report GPS Glitch and flew over to their last position.
Please help we in finidng some way to let the drones flush their paramters