Plane gps no fix!

My plane experiences a lot of deviation in short distances with the internal imu data in case of a GPS outage while flying. How can I reduce this deviation or is it possible to compensate for it by calculating it?