Bugfixes for profileSensor()