GPS glitch - 10 seconds delay

Hello, I’m trying to teleport a copter with sim_vehicle using a modified module fakegps that I feed thanks to a text file.
My problem is that when I change the coordinates of the drone, I get the error “AP: GPS Glitch or Compass error”, 10 seconds delay, the drone teleports to the desired location and I get the message “AP: Glitch cleared”.
And when I change the altitude, I don’t get the messages but I still have a 10 seconds delay…

Any ideas on how to remove this delay ?