Bug in detail sensor
bugfixing