sensors bug fix