fix for tickless idle mode in case remaining ticks are near zero.