Fixed bug in getSensors.