diff --git a/libraries/AP_AHRS/AP_AHRS.h b/libraries/AP_AHRS/AP_AHRS.h
index 1cd685d557ca76563db0b2739e6d160ea2c40fc8..883c158a530a1830485c553ede66d7ece57bec3d 100644
--- a/libraries/AP_AHRS/AP_AHRS.h
+++ b/libraries/AP_AHRS/AP_AHRS.h
@@ -91,8 +91,8 @@ protected:
 
 	// note: we use ref-to-pointer here so that our caller can change the GPS without our noticing
 	//       IMU under us without our noticing.
-	GPS 		*&_gps;
 	IMU 		*_imu;
+	GPS 		*&_gps;
 
 	// true if we are doing centripetal acceleration correction
 	bool		_centripetal;