Fixed changesensors not working correctly