bugfix, improved behavior near the error tolerance (50 ms)