fixes sensor detection glitch