Fix div by zero in time queue.