fix sensor trouble caused by some js