Fixes a small issue which can give weird detection intervals.