bug fix on sonic sensor