Fix sensor notify bug