gyro sample bug fixed