fix sleep/timeout activation accuracy