fix sensor delete