Pixed a bug in range_sensor.cpp