Fix a bug with timer > 250 ms