diff --git a/src/axis_imu.cc b/src/axis_imu.cc
index a84f452feecf4843f85b7221ed181d189ba82fa1..0b1c3e72c01629a64886e969568684c5a79f2735 100644
--- a/src/axis_imu.cc
+++ b/src/axis_imu.cc
@@ -21,7 +21,7 @@ std::string frame_id;
 
 ros::Publisher imu_pub;
 sensor_msgs::Imu imu_msg;
-boost::mutex mutex;
+boost::mutex mymutex;
 
 bool verbose=false;
 int xgyro = 0;
@@ -167,7 +167,7 @@ private:
       }
 
       {
-          boost::mutex::scoped_lock lock(mutex);
+          boost::mutex::scoped_lock lock(mymutex);
           
       /* Fill the IMU message */
       
@@ -261,7 +261,7 @@ void runUDPServer(int port) {
 }
 
 void timer_callback(const ros::TimerEvent&) {
-  boost::mutex::scoped_lock lock(mutex);
+  boost::mutex::scoped_lock lock(mymutex);
   //  ROS_ERROR("publish imu");
   // Publish the messages
   imu_pub.publish(imu_msg);