adaptive sensing bug fix