fixed bug when the internal_deadline was nil