Fix bug on sensor add cancelation.